package com.zhj.product.converter;

import com.zhj.product.entity.dto.ItemsCommentsDTO;
import com.zhj.product.entity.pojo.ItemsComments;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 评论转换器
 */
@Mapper
public interface ItemsCommentsConverter {

    ItemsCommentsConverter INSTANCE = Mappers.getMapper(ItemsCommentsConverter.class);

    ItemsCommentsDTO poToDto(ItemsComments itemsComments);

    List<ItemsCommentsDTO> poToDto(List<ItemsComments> items);
}
